package Test1;

import java.util.Arrays;

public class test
{
    public static void main(String[] args)
    {
        int j = 2;
        int i = 1;
        int a[] = new int[]{i,j};
        System.out.println(a[0]);

        System.out.println(Arrays.toString(test1(i,j)));
        System.out.println(Arrays.toString(test1(i,j)));

    }
    public static int[] test1(int i,int j)
    {
        int a1[] = new int[]{i,j};
        return new int[]{j+1,i+1};
    }
}
